package aopbyxml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopMain {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("aopbyxml/BeanByAnnotation.xml");
        NormalCar car = (NormalCar) context.getBean("car1");
        car.run();
    }
}
